package org.benjamin.lending.domain.form;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@JsonInclude(Include.NON_NULL)
public class Subledger {
	
	private Integer roleType;
	
	private String roleCode;
	
	private Integer inOrOut;
	
	private BigDecimal sum;
	
	private Integer bizFlag;

	/**
	 * 初始化参数
	 * @param roleType 角色类型（0：用户、1：商户、3：企业用户）
	 * @param roleCode 角色编号（用户为第三方标识、商户为商户编码）
	 * @param inOrOut 进出方向（0：进账、1：出账）
	 * @param sum 金额
	 */
	public Subledger(Integer roleType, String roleCode, Integer inOrOut, BigDecimal sum) {
		super();
		this.roleType = roleType;
		this.roleCode = roleCode;
		this.inOrOut = inOrOut;
		this.sum = sum;
	}

	public Integer getRoleType() {
		return roleType;
	}

	public void setRoleType(Integer roleType) {
		this.roleType = roleType;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public Integer getInOrOut() {
		return inOrOut;
	}

	public void setInOrOut(Integer inOrOut) {
		this.inOrOut = inOrOut;
	}

	public BigDecimal getSum() {
		return sum;
	}

	public void setSum(BigDecimal sum) {
		this.sum = sum;
	}

	public Integer getBizFlag() {
		return bizFlag;
	}

	public void setBizFlag(Integer bizFlag) {
		this.bizFlag = bizFlag;
	}
	
	

}
